﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace GestionComercial.Model.Entities
{
    [Table("Articulo")]
    public class Articulo
    {
        [Key]
        public Guid IdArticulo { get; set; }

        public String Codigo { get; set; }

        public String CodigoBarra { get; set; }

        public String NombreArticulo { get; set; }

        public decimal PrecioCosto { get; set; }

        public decimal MargenGanancia { get; set; }

        public decimal PrecioVenta { get; set; }

        public String Talle { get; set; }

        public Guid IdRubro { get; set; }

        [ForeignKey("IdRubro")]
        public virtual Rubro Rubro { get; set; }

        public Guid IdMarca { get; set; }

        [ForeignKey("IdMarca")]
        public virtual Marca Marca { get; set; }

        public Guid? IdStock { get; set; }

        [ForeignKey("IdStock")]
        public virtual Stock Stock { get; set; }

        public bool? ControlarStock { get; set; }


    }
}
